export default class DrawnStep {
    /**
     * @param data {function}
     * @param step {function}
     */
    constructor(data = new Function(), step = new Function()) {
        this.dataBuilder = data;
        this.step = step;
        this.data = this.dataBuilder();
    }

    changeData(key, value) {
        this.data[key] = value;
    }

    setData(data) {
        this.data = data;
    }

    setStep(step) {
        this.step = step;
    }

    update() {
        this.data = this.dataBuilder();
    }
}